<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/15
 * Time: 10:41
 */
session_start();

function getLoginStatus(){
    if(empty($_COOKIE['Token'])){
        return false;
    }
    $token=$_COOKIE['Token'];

    if(empty($_SESSION[$token])){
        return false;
    }
    return true;
}